﻿using System;
using System.Data;
using Besture.Common;
using Besture.Dal;
using Besture.Model;

namespace Besture.Bll
{
    public partial class ImageDac : BaseFacade
    {
        /// <summary>
        /// 根据ID和图片类型获取图片数据
        /// </summary>
        /// <param name="id"></param>
        /// <param name="imageType"></param>
        /// <returns></returns>
        public DataTable GetDataTableByImageType(int id, int imageType)
        {
            try
            {
                base.CreateConnection();
                ImageDal excuteDal = new ImageDal();
                return excuteDal.GetDataTableByImageType(id, imageType);
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                CloseConnection();
            }
        }
    }
}
